package com.vma.jifu.service;

import com.jfinal.plugin.activerecord.Page;
import com.vma.jifu.bizModel.model.*;

import java.util.Map;

/**
 * Created by chenzui on 2017/6/19.
 */
public interface AgentService {
    public Page<User> getFirstAgent(Integer cPage,Integer pSize,Integer userId,String account);

    public Page<ReturnCharge> gryReturnList(Integer cPage,Integer pSize,Integer userId,String start,String end);

    public JoinFee qryAgentArea(String province, String city, String area);

    public AgentOrder commitAgentInfo(Integer joinId, Integer userId, String tjren, String phone, String agentName);

    public boolean callBackForAgentCharge(String orderNbr,Integer type);

    public void initJoinFee();

    /**
     * 查询该客户的代理
     * @param userId
     * @return 省市区信息，营业额，已确认金额，未确认金额
     */
    public Map initAgentPage(Integer userId);


    public Page<TgAward> qryAgentAwardList(Integer userId,Integer cPage,Integer pSize);

    public Long qryTotalTgAward(Integer userId);

    public Integer checkArea(String province,String city,String area);
}
